package com.xrui.hbase.exception;

/** Thrown when parsing a bogus HBaseURI. */
public final class HBaseURIException extends RuntimeException {
  /**
   * Creates a new <code>HBaseURIException</code>.
   *
   * @param message Human readable message.
   */
  public HBaseURIException(String message) {
    super(message);
  }

  /**
   * Creates a new <code>HBaseURIException</code> for the specified uri and detail message.
   *
   * @param uri Bogus HBaseURI.
   * @param message Human readable explanation.
   */
  public HBaseURIException(String uri, String message) {
    super(String.format("Invalid HBaseURI: '%s' : %s", uri, message));
  }
}
